/*!
 * Bootstrap v4.0.0 (https://getbootstrap.com)
 * Copyright 2011-2018 The Bootstrap Authors
 * Copyright 2011-2018 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

/*******************************************/
/** Add bootstrap style to prevent **/
/** conflict with core application's style **/
/*******************************************/

/** Button **/
#viewerMain .btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#viewerMain .btn:hover, #viewerMain .btn:focus {
    text-decoration: none;
}

#viewerMain .btn:focus, #viewerMain .btn.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#viewerMain .btn.disabled, .btn:disabled {
    opacity: 0.65;
}

#viewerMain .btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

#viewerMain .btn:not(:disabled):not(.disabled):active, #viewerMain .btn:not(:disabled):not(.disabled).active {
    background-image: none;
}

#viewerMain a.btn.disabled,
#viewerMain fieldset:disabled a.btn {
    pointer-events: none;
}

/** Close button **/

#viewerMain .close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

#viewerMain .close:hover, #viewerMain .close:focus {
    color: #000;
    text-decoration: none;
    opacity: .75;
}

#viewerMain .close:not(:disabled):not(.disabled) {
    cursor: pointer;
}

#viewerMain button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}


/** Modal **/

#viewerMain .modal-open {
    overflow: hidden;
}

#viewerMain .modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
}

#viewerMain .modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

#viewerMain .modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

#viewerMain .modal.fade .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -25%);
    transform: translate(0, -25%);
}

#viewerMain .modal.show .modal-dialog {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

#viewerMain .modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (0.5rem * 2));
}

#viewerMain .modal-content {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #000;
    background-clip: padding-box;
    border: 1px solid #91b9cd;
    border-radius: 6px;
    color: #91b9cd;
    outline: 0;
}

#viewerMain .modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
}

#viewerMain .modal-backdrop.fade {
    opacity: 0;
}

#viewerMain .modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #91b9cd;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

#viewerMain .modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

#viewerMain .modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

#viewerMain .modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

#viewerMain .modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #91b9cd;
}

#viewerMain .modal-footer > :not(:first-child) {
    margin-left: .25rem;
}

#viewerMain .modal-footer > :not(:last-child) {
    margin-right: .25rem;
}

#viewerMain .modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (min-width: 576px) {
    #viewerMain .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
    #viewerMain .modal-dialog-centered {
        min-height: calc(100% - (1.75rem * 2));
    }
    #viewerMain .modal-sm {
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    #viewerMain .modal-lg {
        max-width: 900px;
    }
}